package com.learn.ch02.comtroller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2025/02/12
 * @description
 */
@RestController
public class IndexController {
    @Autowired
    private Date date;
    @GetMapping("/")
    public String index() {
        System.out.println(date);
        return "hello";
    }
}
